﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ShareB.Models.ProfileModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Profile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Profile</h2>

    <fieldset>
        <legend>Information</legend>
        
        <div class="display-label">UserName</div>
        <div class="display-field"><%: Model.UserName %></div>
        
        <div class="display-label">Email</div>
        <div class="display-field"><%: Model.Email %></div>
        
        <div class="display-label">Password</div>
        <div class="display-field"><%: Model.Password %></div>
        
        <div class="display-label">FirstName</div>
        <div class="display-field"><%: Model.FirstName %></div>
        
        <div class="display-label">LastName</div>
        <div class="display-field"><%: Model.LastName %></div>
        
        <div class="display-label">Address</div>
        <div class="display-field"><%: Model.Address %></div>
        
        <p><%: Html.ActionLink("Edit", "EditProfile") %> </p>

    </fieldset>

        <fieldset>
        <legend>Followers</legend>
        
        <div class="display-label">Publishers</div>
        <div class="display-field">
            <% foreach (var mod in Model.Publishers)
               {  %>
            <%:             mod.Photograph%>
            <%:             mod.Username%>
            <% } %>
        </div>
        
        <p>
        <%: Html.ActionLink("Managing Followers", "ManageFollowers")%>
        </p>
    </fieldset>

    <p>
        <%: Html.ActionLink("Back to List", "Index", "Home") %>
    </p>

</asp:Content>

